import React from 'react';
import './App.css';
import { useAuth } from "context/auth-context"
import UnAuthPage from "pages/unauth-page"
import AuthPage  from 'pages/auth-page';

function App() {
  const { user } = useAuth()
  return (
    <div className="App">
      {user ? <AuthPage /> : <UnAuthPage />}
    </div>
  );
}

export default App;
